package com.itheima.自习.第一次.第一题;

public class Student extends Person {
    private String school; // 所在学校

    public Student() {
    }

    public Student(String name, int age, String birthday, String school) {
        super(name, age, birthday);
        this.school = school;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    // 获取信息的方法
    public String getInfo() {
        return "Student[name=" + this.getName() + ", age=" + this.getAge() + ", birthday=" + this.getBirthday() + ", school=" + school + "]";
    }
}
